package com.example.recruitment_website.service.Impl;


import com.example.recruitment_website.domain.WorkInfo;
import com.example.recruitment_website.repository.WorkInfoRepository;
import com.example.recruitment_website.service.WorkInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WorkInfoImpl implements WorkInfoService {

    @Autowired
    WorkInfoRepository workInfoRepository;

    @Override
    public List<WorkInfo> findByPositionLike(String Key) {
        return workInfoRepository.findByPositionLike("%"+Key+"%");
    }

}
